package com.lplpok.lplpokmod;

import net.minecraft.world.effect.MobEffectInstance;
import net.minecraft.world.effect.MobEffects;
import net.minecraft.world.food.FoodProperties;
import net.minecraft.world.item.*;
import net.minecraftforge.registries.DeferredRegister;
import net.minecraftforge.registries.ForgeRegistries;
import net.minecraftforge.registries.RegistryObject;

public class lplpokmod_items {

    public static final DeferredRegister<Item> ITEMS = DeferredRegister.create(ForgeRegistries.ITEMS,lplpokmod.MODID);

    public static final String iron_gold_ingot_ID = "iron_gold_ingot";

    public static final RegistryObject<Item> iron_gold_ingot = ITEMS.register(iron_gold_ingot_ID,
            ()->new Item(new Item.Properties()));

    public static final String iron_gold_block_item_ID = "iron_gold_block_item";
    public static final RegistryObject<BlockItem> iron_gold_ingot_item = ITEMS.register(iron_gold_block_item_ID,
            ()->new BlockItem(lplpokmod_blocks.iron_gold_block.get(),new Item.Properties()));

    public static final String iron_gold_bread_ID = "iron_gold_bread";
    public static final RegistryObject<Item> iron_gold_bread = ITEMS.register(iron_gold_bread_ID,
            ()->new Item(new Item.Properties().food(new FoodProperties.Builder()
                            .nutrition(4)
                            .alwaysEat()
                            .fast()
                            .saturationMod(1)
                            .effect(()->new MobEffectInstance(
                                    MobEffects.DIG_SPEED,
                                    200*20,
                                    2
                            ),1)
                    .build())));
    public static final String iron_gold_sword_ID = "iron_gold_sword";
    public static final RegistryObject<Item> iron_gold_sword = ITEMS.register(iron_gold_sword_ID,
            ()->new SwordItem(ModTiers_sword.iron_gold,2,1.5f,new Item.Properties()));

    public static final String iron_gold_pickaxe_ID = "iron_gold_pickaxe";
    public static final RegistryObject<Item> iron_gold_pickaxe = ITEMS.register(iron_gold_pickaxe_ID,
            ()->new PickaxeItem(ModTiers_pickaxe.iron_gold,2,1.5f,new Item.Properties()));




}
